const webpackDevServer = require('webpack-dev-server');
const webpack = require('webpack');

const config = require('./webpack.config.js');
const options = {
  hot: true,
  host: 'localhost',
  port: '8090'
};

const compiler = webpack(config);
const server = new webpackDevServer(options, compiler);

server.start().then(() => {
  console.log('serve run on http://localhost:8090')
});
